import Vue from 'vue'
import VueRouter from 'vue-router'
import Main from '../views/Main.vue'
import workStation from "../views/singlepage/workStation.vue"
import departmentInfo from "../views/singlepage/departmentInfo.vue"
import navigation from "../views/singlepage/navigation.vue"
import dataStatistics from "../views/singlepage/dataStatistics.vue"
import personalInfo from "../views/singlepage/personalInfo.vue"
import authManagement from "../views/singlepage/authManagement.vue"
import dataManagement from "../views/singlepage/dataManagement.vue"

Vue.use(VueRouter)

const routes = [
  
  {
    path: '/',
    name: 'home',
    component: Main,
    redirect:"/workStation",
    children:[
      {
        path:"/workStation",
        name:"workStation",
        component:workStation
      },
      {
        path:"/departmentInfo",
        name:"departmentInfo",
        component:departmentInfo
      },
      {
        path:"/navigation",
        name:"navigation",
        component:navigation
      },
      {
        path:"/dataManagement",
        name:"dataManagement",
        component:dataManagement
      },
      {
        path:"/dataStatistics",
        name:"dataStatistics",
        component:dataStatistics
      },
      {
        path:"/personalInfo",
        name:"personalInfo",
        component:personalInfo
      },
      {
        path:"/authManagement",
        name:"authManagement",
        component:authManagement
      }
    ]
  },
  
]

const router = new VueRouter({
  routes
})

export default router
